package com.service.Serviceimpl;

import com.dao.MovieDao;
import com.entity.Movie;
import com.service.movieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;


@Service
public class MovieServiceimpl implements movieService {
    @Autowired
    private MovieDao movieDao;

    @Override
    public List<Movie> getMovieList() {
        List<Movie> list = movieDao.getMovieList();
        return list;
    }

    @Override
    public  Movie getMovieById(String id){
        Movie movie =movieDao.getMovieById(id);
        return movie;
    }
}
